package cn.haona.game.simb.wap.actions;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import cn.haona.game.simb.object.bio.User;
import cn.haona.game.simb.servlet.Define;
import cn.haona.game.simb.servlet.SessionHn;
import cn.haona.game.simb.servlet.SessionHnManager;

import com.opensymphony.xwork2.ActionSupport;

public class ActionSimbParent extends ActionSupport
{

	public User getUser()
	{
		SessionHn sessionHn = SessionHnManager.getSessionHn();

		if (sessionHn != null)
		{
			User user = (User) sessionHn.getElement(SessionHn.KEY_USERBEAN);
			return user;
		}
		return null;
	}
}
